package by.msokoloff.javaweb2015.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "plane_model")
public class PlaneModel extends AbstractEntity {

	@Column(name = "name")
	private String name;

	@Column(name = "iata_code")
	private String iataCode;

	@Column(name = "capacity")
	private Integer capacity;

	@Column(name = "speed")
	private Double speed;

	@Column(name = "fuel_consumption")
	private Double fuelConsumption;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIataCode() {
		return iataCode;
	}

	public void setIataCode(String iataCode) {
		this.iataCode = iataCode;
	}

	public Integer getCapacity() {
		return capacity;
	}

	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}

	public Double getSpeed() {
		return speed;
	}

	public void setSpeed(Double speed) {
		this.speed = speed;
	}

	public Double getFuelConsumption() {
		return fuelConsumption;
	}

	public void setFuelConsumption(Double fuelConsumption) {
		this.fuelConsumption = fuelConsumption;
	}

	@Override
	public String toString() {
		return "[PlaneModel: " + this.name + "]";
	}

}
